|
|
|
|
|
|
|
something happens in the application, or you can use the Speak method to inform users of something. Table B.2 is a short list of what types of animations you have available to use. |
|
|
|
|
| TABLE B.2. AVAILABLE GENIE CHARACTER ANIMATIONS. | | Animation Name | Description | | Announce | Raises hand | | Confused | Scratches head | | Congratulate | Thumbs-up gesture | | Decline | Raises hands and shakes head | | Processing | Spins (looping animation) | | Reading | Reads (looping animation) | | Suggest | Displays a light bulb | | Think | Looks up with hand on chin | | Uncertain | Raises eyebrow with hand on chin | | Writing | Writes (looping animation) |
|
|
|
|
|
|
For each animation is a corresponding animation with the word Return attached to the original name (for example, AnnounceReturn). Remember that with the looping animations, you must use the Stop method before playing any other animation. |
|
|
|
|
|
|
|
|
Note Each character has a Word document that lists all the available animations. You can find this document on the Microsoft Agent's Web site. |
|
|
|
|
|
|
|
|
|
The animation name is passed to the Play method to tell the character which animation to play. To see how this works, add the following code line to the command button's click event: |
|
|
|
|
|
|
|
|
MyAgent.Play Congratulate |
|
|
|
|
|
|
|
|
Caution If you're playing a looping animation, you must use the Stop method to clear it before other animations can be played. |
|
|
|
|
|
|